﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using Deployment.Manager.Configuration.Enum;

namespace Deployment.Manager.Configuration
{
    [Serializable]
    public class Branch
    {
        [XmlAttribute()]
        public string Name { get; set; }
        [XmlAttribute()]
        public string SourceUri { get; set; }
        [XmlAttribute()]
        public string CompiledUri { get; set; }
        [XmlAttribute()]
        public bool Compile { get; set; }
        public Enviroment EnviromentType { get; set; }
        public List<Branch> Dependencies { set; get; }
        [XmlAttribute()]
        public string SystemId { get; set; }

        public Branch()
        {
            this.Dependencies = new List<Branch>();
            this.Compile = true;
        }
    }
}
